<script lang="ts" setup>
  import { OperatorItem } from '@/types/operators';

  defineProps<{
    operatorInfo: OperatorItem;
  }>();
</script>

<template>
  <div class="operator-card">
    <div class="operator-card-icon">
      <img :src="operatorInfo.logo" />
    </div>
    <div class="operator-card-info">
      <div class="operator-card-name">
        <div class="operator-card-name-c">
          {{ operatorInfo.name }}
        </div>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
  .operator-card {
    display: flex;
    align-items: center;
    &-icon {
      width: 60px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        max-width: 100%;
        max-height: 100%;
      }
    }

    &-info {
      flex: 1;
      min-width: 0;
      margin-left: 10px;
    }

    &-name {
      font-size: 15px;
      font-weight: 500;
      display: flex;

      &-c {
        flex: 1;
      }
    }

    &-desc {
      color: var(--color-text-2);
    }
  }
</style>
